package com.fxd.test;

import com.fxd.service.IAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @auther fuxudong
 * @date 2021/1/26 - 15:54
 * 测试aop的配置
 */
public class aoptest {

    public static void main(String[] args) {
        //1,获取容器
        ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("bean.xml");
        //2,获取对象
        IAccountService as = ac.getBean("accountService", IAccountService.class);
        //3，执行方法
        as.saveAccount();
    }


}
